#print([((a*100)+(b*10)+c) for a in range(1,10) for b in range(1,10) for c in range(1,10)if (a==c)])
import  urllib;
import  macurl2path;
def count():
    fs = []
    for i in range(1, 4):
        m=i
        def f(n=m):
            return n*n
        fs.append(f(m))
    return fs
f1, f2, f3 = count(),count(),count()
print(f1(), f2(), f3())